<template>
  <div class="topNav">
    <div class="left">
      <img src="@/assets/img/logo.svg" alt="" />
      <span class="title">ZEMOZ</span>
    </div>

    <div class="center">
      <my-button-vue type="primary">留言墙</my-button-vue>
      <my-button-vue type="default">照片墙</my-button-vue>
    </div>

    <div class="right">
      <div class="user-head"></div>
    </div>
  </div>
</template>

<script>
import MyButtonVue from "./MyButtoon/MyButton.vue";
export default {
  components: {
    MyButtonVue,
  },
};
</script>

<style lang="scss" scoped>
.topNav {
  width: 100%;
  //   max-width: 1500px; 这里加了这句话以后，页面缩放会很怪
  height: 52px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
  // 毛玻璃效果
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

  padding: 0 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 200px;

  .left {
    display: flex;
    align-items: center;
    img {
      width: 32px;
      height: 32px;
      margin-right: 10px;
    }
    .title {
      font-size: 20px;
      color: $gray-1;
    }
  }

  .center {
    flex: 1;
    margin-left: -90px;
  }
  .right {
    flex: 0 0 100px;
    .user-head {
      border-radius: 50%;
      height: 36px;
      width: 36px;
      background-image: linear-gradient(180deg, #7be7ff, #1e85e2);
    }
  }
}
</style>
